MOV( <value>, <periods>, <MAType> )
Computes the moving average of the value over the specified number of periods using the specified moving average type.
Function ParametersParameter | Description |
---|
<value> | The value to compute the moving average of. |
<periods> | The number of periods to compute the moving average over. |
<MAType> | The type of moving average to compute. |
MAType can be specified as follows:
MAType Parameter | Description |
---|
MAType.SMA | Simple moving average. |
MAType.SMMA | Smoothed moving average. |
MAType.EMA | Exponential moving average. |
MAType.LWMA | Linear weighted moving average. |
MAType.LSMA | Least square moving average. |
MAType.HMA | Hull moving average. |
MAType.WILDERMA | Wells Wilder simple moving average. |
Aliases
The following are aliases for the MOV function:
SMA( <
value>, <
periods>)
EMA( <
value>, <
periods>)
SMMA( <
value>, <
periods>)
LWMA( <
value>, <
periods>)
LSMA( <
value>, <
periods>)
HMA( <
value>, <
periods>)
WILDERMA( <
value>, <
periods>)
Back to the Scripting Function Reference